﻿@{
    Layout = null;
}
@model TSites.Core.Domain.MenuMgmt.Menu
@using TSites.Administrator.Extensions;
<!DOCTYPE html>

<html>
<head>
    <title>Menu Management</title>
    <link href="@Url.Stylesheet("tree_component.css")" rel="stylesheet" type="text/css" />   
   <script src="@Url.Script("/TSAdmin/lib/css.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/TSAdmin/lib/css.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/TSAdmin/lib/jquery.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/TSAdmin/tree_component.js")" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $("#demo1").tree();
        });
    </script>
</head>
<body>
<div style="width:100%; height:100%">
    <div id="demo1" style="float:left;width:40%; left:10px">
	    <ul>
		    <li id="phtml_1" class="open"><a href="#">Root node 1</a>
			    <ul>
				    <li id="phtml_2" class="open"><a href="#" style="background-image:url('../media/images/ok.png');">Custom icon</a>
                        <ul>
                            <li id="phtml_3e"><a href="#">Extend node</a></li>
                        </ul>
                    </li>
				    <li id="phtml_3"><a href="#">Child node 2</a></li>
				    <li id="phtml_4"><a href="#">Some other child node 111</a></li>
			    </ul>
		    </li>
		    <li id="phtml_5"><a href="#">Root node 2</a></li>
	    </ul>      
    </div>
    <div id="divMenuDtl" style="float:left;width:60%">
        @using (Html.BeginForm("Update", "MenuMgmt", FormMethod.Post))
        {
             <div>
              <fieldset>
                <table style="border:1px thin red">
                    <tbody>
                        <tr >
                            <th >Menu Item Information</th>
                        </tr>
                    </tbody>
                    <tr>
                        <td>Menu Id</td>
                        <td>@Html.TextBoxFor(m => m.ID)</td>
                    </tr>
                    <tr>
                        <td>Menu Name</td>
                        <td>@Html.TextBoxFor(m => m.MenuName)</td>
                    </tr>
                    <tr>
                        <td>Menu URL</td>
                        <td>@Html.TextBoxFor(m => m.MenuUrl)</td>
                    </tr>
                    <tr>
                        <td>Module</td>
                        <td>@Html.TextBox("News")</td>
                        <td>Map For</td>
                        <td>@Html.TextBox("Computer")</td>
                    </tr>
                    <tr>
                        <td>Menu Description</td>
                        <td>@Html.TextBoxFor(m => m.MenuDescription)</td>
                    </tr>
                     <tr>
                        <td>Message Code</td>
                        <td>@Html.TextBoxFor(m => m.MessageCode)</td>
                    </tr>
                     <tr>
                        <td>Order Number</td>
                        <td>@Html.TextBoxFor(m => m.OrderNumber)</td>
                    </tr>
                     <tr>
                        <td>Parent Menu</td>
                        <td>@Html.TextBoxFor(m => m.ParentMenuId)</td>
                    </tr>
                </table>
                <input type="submit" value="Save" />
                 </fieldset>
            </div>
        }
    </div>
</div>
</body>
</html>
